package com.singzi.leetcode.N1100;

import java.util.Stack;

public class T1020StackTest {
    public static void main(String[] args) {
        Stack stack = new Stack();
        stack.push(1);
        stack.push(1);
        stack.push(1);
        stack.push(1);
        if("2"==stack.pop()){
            System.out.println("right");
        }
        else{
            System.out.println("error");
        }
        System.out.println(stack.pop());
        System.out.println(stack);
        System.out.println(stack);

    }
}
